﻿<UserControl
    x:Class="Dicide.Components.Light"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Dicide.Views"
    xmlns:common="using:Dicide.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Height="100"
    Width="100">
    <UserControl.Resources>
        <common:BooleanToVisibilityConverter
            x:Key="BooleanToVisibilityConverter" />
    </UserControl.Resources>
    <Grid>
        <Ellipse
            Fill="Gray" />
        <Grid
            Margin="5">
            <Ellipse
                Fill="Black" />
            <Ellipse
                Fill="Green"
                Visibility="{Binding On, Converter={StaticResource BooleanToVisibilityConverter}}" />
        </Grid>
    </Grid>
</UserControl>
